package com.dragon.modules.yuegou.model.act;

import com.dragon.modules.yuegou.entity.act.GiftBagEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 礼包表模型类
 * 
 * @author pbuilder generated
 * @date 2020-08-05 15:47:18
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class GiftBag extends GiftBagEntity {

	/**
	 * 构造一个空礼包表模型对象
	 */
	public GiftBag(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个礼包表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public GiftBag(GiftBagEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个礼包表模型对象
	 * 
	 * @param other 其它对象
	 */
	public GiftBag(GiftBag other){
		super(other);
	}

	@ApiModelProperty("数量")
	private Integer num;

	private List<GiftBagProRef> giftBagProRefList;

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public List<GiftBagProRef> getGiftBagProRefList() {
		return giftBagProRefList;
	}

	public void setGiftBagProRefList(List<GiftBagProRef> giftBagProRefList) {
		this.giftBagProRefList = giftBagProRefList;
	}

	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public GiftBag id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public GiftBag busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getBagName() {
    	return bagName;
    }

    /**
	 * 设置礼包名称
	 * 
	 * @param bagName 礼包名称
	 * @return 当前对象
	 */
    public GiftBag bagName(String bagName) {
    	this.bagName = bagName;
    	return this;
    }

	@Override
	public String getRemark() {
    	return remark;
    }

    /**
	 * 设置备注
	 * 
	 * @param remark 备注
	 * @return 当前对象
	 */
    public GiftBag remark(String remark) {
    	this.remark = remark;
    	return this;
    }

	@Override
	public Integer getSort() {
    	return sort;
    }

    /**
	 * 设置排序
	 * 
	 * @param sort 排序
	 * @return 当前对象
	 */
    public GiftBag sort(Integer sort) {
    	this.sort = sort;
    	return this;
    }

	@Override
	public String getSpuId() {
    	return spuId;
    }

    /**
	 * 设置
	 * 
	 * @param spuId 
	 * @return 当前对象
	 */
    public GiftBag spuId(String spuId) {
    	this.spuId = spuId;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置
	 * 
	 * @param skuId 
	 * @return 当前对象
	 */
    public GiftBag skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public GiftBag createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public GiftBag createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }
}
